﻿@model ForumCategoryDto
@{
    var title = Resources.EnetaMvc.EditForumCategory;
    if (Model == null || Model.Id == 0)
    {
        title = Resources.EnetaMvc.AddForumCategory;
    } 
    
    ViewBag.Title = title;
    Layout = "~/Views/Shared/_ForumsLayout.cshtml";
}
@section Title {
    @title
}

<style>
.content-txt
{
    background-color: #FFF;    
}
.information-main
{
    float:left;    
    margin-left: 15px;
}
</style>
@Html.ValidationSummary(false)

@{ Html.BeginForm(); }

<div class="enter-information">
    <fieldset>
        <div class="input-holder">
            <div class="info-row">
				@Html.ValidationMessageFor(m => m.Name)
				<div class="title">
					<h5>@Resources.EnetaMvc.ForumCategoryTitle</h5>
				</div>
				<div class="error-note"> <span>*</span> </div>
				<div class="information-main">
                    @Html.TextBoxFor(m => m.Name, new Dictionary<string,object> { {"class","text-go"} })
                </div>
			</div>
            <div class="info-row">
				@Html.ValidationMessageFor(m => m.FeedburnerRssUrl)
				<div class="title">
					<h5>@Resources.EnetaMvc.FeedburnerUrl</h5>
				</div>
				<div class="error-note"> </div>
				<div class="information-main">
                    @Html.TextBoxFor(m => m.FeedburnerRssUrl, new Dictionary<string, object> { { "class", "text-go" } })
                </div>
			</div>
        </div>
        <div class="submit">
			<input type="submit" value="@Resources.EnetaMvc.Save"/>
		</div>
		<a class="loobu" href="@Url.Content("~/forums/")">@Resources.EnetaMvc.Cancel</a>
        <p style="display:block;clear: both">&nbsp;</p>
    </fieldset>
</div>

@{ Html.EndForm(); }